package com.cupdata.sms.config;

import com.cupdata.sms.core.ThreadPoolStatus;
import lombok.Data;
import org.apache.kafka.common.protocol.types.Field;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: zda
 * @description: 框架相关参数
 * @date: 2024/4/29 18:37
 */
@EnableConfigurationProperties
@Configuration
@ConfigurationProperties(prefix = "channel-core")
@Data
public class ConfigProperties {
    private boolean enableDefaultPool = true;
    private boolean enableDefaultKafka = true;
    // 自定义线程池
    private List<ThreadPoolStatus> threadPoolStatuses;
    // kafka相关
    private String boostrapServers;
    private String clientId;
    // 自定义kafkaProducer配置
    private Map<String,Object> producerProps = new HashMap<>();

}
